﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Pro_TaskAdd.aspx.cs" Inherits="ArtLand.OA.Project.Project.Pro_TaskAdd" %>


<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>

    <script src="../js/jquery-1.4.1.min.js"></script>

    <style>
        .x-form-item {
            padding: 5px;
        }

        .mright {
            margin-right: 5px;
        }

        .datecontainer .x-form-field-trigger-wrap {
            margin-right: 5px;
        }

        .tright {
            text-align: right;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="Panel1" />
        <ext:Panel ID="Panel1" BodyPadding="10px" runat="server" EnableBackgroundColor="false"
            EnableCollapse="True" Title="面板" Width="600px" ShowHeader="false" ShowBorder="false" AutoScroll="true">
            <Toolbars>
                <ext:Toolbar Position="Footer">
                    <Items>
                        <ext:Button Text="保存" Icon="DatabaseSave" ValidateForms="SimpleForm2" ConfirmText="您确定要保存吗？" ID="btnSave" runat="server" OnClick="btnSave_Click"></ext:Button>
                        <ext:Button Text="关闭" Icon="SystemClose" ID="btnClose" runat="server"></ext:Button>
                    </Items>
                </ext:Toolbar>
            </Toolbars>
            <Items>
                <ext:SimpleForm ID="SimpleForm2" EnableBackgroundColor="false" ShowBorder="false" ShowHeader="false" Width="470px" BodyPadding="5px" Title="表单" runat="server">
                    <Items>
                        <ext:Panel ID="Panel2" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server">
                            <Items>
                                <ext:Label ID="Label2" runat="server" Width="80px" EncodeText="false" Text="项目编号：" CssClass="tright"></ext:Label>
                                <ext:TextBox ID="txt_Proj_No" Label="项目编号" Readonly="true" runat="server" Width="145px" />
                                <ext:Label ID="Label8" runat="server" Width="80px" EncodeText="false" Text="项目名称：" CssClass="tright"></ext:Label>
                                <ext:TextBox ID="txt_ProjName" Label="项目名称" Readonly="true" runat="server" Width="145px" />
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel7" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server">
                            <Items>
                                <ext:Label ID="Label11" runat="server" Width="80px" Text="<span style='color:red;font-weight:bold;'>*</span>发起人：" CssClass="tright" EncodeText="false"></ext:Label>
                                <ext:TriggerBox ID="txt_Task_Organiser" EnableEdit="false" Readonly="false" TriggerIcon="Search" EmptyText="选择发起人" runat="server" Required="true" ShowRedStar="true" Label="项目联系人" Width="145px">
                                </ext:TriggerBox>
                                <ext:HiddenField runat="server" ID="hid_Task_OrganiserID"></ext:HiddenField>

                                <ext:Label ID="Label3" runat="server" Width="80px" Text="<span style='color:red;font-weight:bold;'>*</span>执行人：" CssClass="tright" EncodeText="false"></ext:Label>
                                <ext:TriggerBox ID="txt_Task_Implement" EnableEdit="false" Readonly="false" TriggerIcon="Search" EmptyText="选择执行人" runat="server" Required="true" ShowRedStar="true" Label="项目联系人" Width="145px">
                                </ext:TriggerBox>
                                <ext:HiddenField runat="server" ID="hid_Task_ImplementID"></ext:HiddenField>
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel8" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server">
                            <Items>
                                <ext:Label ID="Label7" runat="server" Width="80px" EncodeText="false" Text="任务内容：" CssClass="tright"></ext:Label>
                                <ext:DropDownList runat="server" ID="Drp_Contents">
                                </ext:DropDownList>
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel3" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server">
                            <Items>
                                <ext:Label ID="Label4" runat="server" Width="80px" EncodeText="false" Text="<span style='color:red;font-weight:bold;'>*</span>任务计划完成时间：" CssClass="tright"></ext:Label>
                                <ext:DatePicker ID="txt_Plan_FinishTime" Label="任务计划完成时间" runat="server" Required="true" ShowRedStar="true" Width="145px"></ext:DatePicker>
                            </Items>
                        </ext:Panel>
                        <%--<ext:Panel ID="Panel5" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server">
                            <Items>
                                <ext:Label ID="Label5" runat="server" Width="80px" EncodeText="false" Text="<span style='color:red;font-weight:bold;'>*</span>任务实际完成时间：" CssClass="tright"></ext:Label>
                                <ext:DatePicker ID="txt_Reality_FinishTime" Label="任务计划完成时间" runat="server" Required="true" ShowRedStar="true" Width="145px"></ext:DatePicker>
                            </Items>
                        </ext:Panel>--%>
                         <ext:Panel ID="Panel6" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server">
                            <Items>
                                <ext:Label ID="Label6" runat="server" Width="80px" EncodeText="false" Text="任务状态：" CssClass="tright"></ext:Label>
                                <ext:DropDownList runat="server" ID="Drp_Task_State">
                                    <ext:ListItem Text="未进行" Value="0" />
                                    <ext:ListItem Text="进行中" Value="1" />
                                    <ext:ListItem Text="已完成" Value="2" />
                                    <ext:ListItem Text="取消" Value="10" />
                                </ext:DropDownList>
                            </Items>
                        </ext:Panel>
                        <ext:Panel ID="Panel4" ShowHeader="false" CssClass="x-form-item" ShowBorder="false"
                            Layout="Column" runat="server">
                            <Items>
                                <ext:Label ID="Label1" runat="server" Width="80px" EncodeText="false" Text="<span style='color:red;font-weight:bold;'>*</span>备注：" CssClass="tright"></ext:Label>
                                <ext:TextArea ID="txt_Memo" runat="server" Width="370px" Label="备注"></ext:TextArea>
                            </Items>
                        </ext:Panel>
                    </Items>
                </ext:SimpleForm>
            </Items>
        </ext:Panel>
        <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
            CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
            Target="Top" IsModal="True" Width="500px" Height="400px">
        </ext:Window>
    </form>

</body>
</html>
